package com.cbg.discount.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.cbg.base.core.SuperEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.sql.Date;


@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("dg_discount_record")
public class DiscountRecord extends SuperEntity<DiscountRecord> {

    private static final long serialVersionUID = -1226578062365426782L;

    /**
     * 发放用户的id
     */
    private String userId;
    /**
     * 优惠券id
     */
    private String discountId;
    /**
     * 优惠券数量
     */
    private Integer amount;

    /**
     * 渠道id
     */
    private String channelId;
    /**
     * 到达日期
     */
    private Date arriveDate;
}
